package nsd.test.zy03;

public abstract class Shape {
    private double area;
    private double per;
    private String color;

    public void setArea(double area) {
        this.area = area;
    }

    public void setPer(double per) {
        this.per = per;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Shape() {
    }

    public Shape(String color) {
        this.color = color;
    }
    public abstract double getArea();
    public abstract double getPer();
    public abstract void showAll();
    public void getColor(){
        System.out.println("我的颜色为："+color);
    }
}
